<header class="app-header"><a class="app-header__logo" href="index.html">征婚后台管理</a>
        <a class="app-sidebar__toggle" href="#" data-toggle="sidebar" aria-label="Hide Sidebar"></a>
        <ul class="app-nav">
            <li class="app-search">
                <input class="app-search__input" type="search" placeholder="Search">
                <button class="app-search__button"><i class="fa fa-search"></i></button>
            </li>
            <li class="dropdown"><a class="app-nav__item" href="#" data-toggle="dropdown" aria-label="Show notifications"><i class="fa fa-bell-o fa-lg"></i></a>
            </li>
            <!-- User Menu-->
            <li class="dropdown"><a class="app-nav__item" href="#" data-toggle="dropdown" aria-label="Open Profile Menu"><i class="fa fa-user fa-lg"></i></a>
                <ul class="dropdown-menu settings-menu dropdown-menu-right">
                    <li><a class="dropdown-item" href="contro_post.php?a=exit"><i class="fa fa-sign-out fa-lg"></i> 退出</a></li>
                </ul>
            </li>
        </ul>
    </header>
    <!-- Sidebar menu-->
    <div class="app-sidebar__overlay" data-toggle="sidebar"></div>
    <aside class="app-sidebar">
        <div class="app-sidebar__user"><img class="app-sidebar__user-avatar" src="https://s3.amazonaws.com/uifaces/faces/twitter/jsa/48.jpg" alt="User Image">
            <div>
                <p class="app-sidebar__user-name"><?php echo $_COOKIE['uname']?></p>
                <p class="app-sidebar__user-designation"><?php echo $_COOKIE['auth']?></p>
            </div>
        </div>
        <ul class="app-menu">
            <li><a class="app-menu__item active" href="../admin.php"><i class="app-menu__icon fa fa-dashboard"></i><span class="app-menu__label">首页</span></a></li>
            <li class="treeview"><a class="app-menu__item" href="#" data-toggle="treeview"><i class="app-menu__icon fa fa-th-list"></i><span class="app-menu__label">用户管理</span><i class="treeview-indicator fa fa-angle-right"></i></a>
                <ul class="treeview-menu">
                    <li><a class="treeview-item" href="../user/user.php"><i class="icon fa fa-circle-o"></i> 用户信息</a></li>
                </ul>
                <ul class="treeview-menu">
                    <li><a class="treeview-item" href="../user/add.php"><i class="icon fa fa-circle-o"></i> 用户添加</a></li>
                </ul>
            </li>
            <li class="treeview"><a class="app-menu__item" href="#" data-toggle="treeview"><i class="app-menu__icon fa fa-file-text"></i><span class="app-menu__label">板块管理</span><i class="treeview-indicator fa fa-angle-right"></i></a>
                <ul class="treeview-menu">
                    <li><a class="treeview-item" href="../plate/plate.php"><i class="icon fa fa-circle-o"></i>板块信息</a></li>
                    <li><a class="treeview-item" href="../plate/father_add.php"><i class="icon fa fa-circle-o"></i>添加父板块</a></li>
                </ul>
            </li>
            <li class="treeview"><a class="app-menu__item" href="#" data-toggle="treeview"><i class="app-menu__icon fa fa-edit"></i><span class="app-menu__label">会员管理</span><i class="treeview-indicator fa fa-angle-right"></i></a>
                <ul class="treeview-menu">
                    <li><a class="treeview-item" href="../vip/vip.php"><i class="icon fa fa-circle-o"></i> 会员列表</a></li>
                    <li><a class="treeview-item" href="../vip/add.php"><i class="icon fa fa-circle-o"></i>会员添加</a></li>
                </ul>
            </li>
            <li class="treeview"><a class="app-menu__item" href="#" data-toggle="treeview"><i class="app-menu__icon fa fa-edit"></i><span class="app-menu__label">帖子管理</span><i class="treeview-indicator fa fa-angle-right"></i></a>
                <ul class="treeview-menu">
                    <li><a class="treeview-item" href="../post/post.php"><i class="icon fa fa-circle-o"></i> 帖子列表</a></li>
                    <li><a class="treeview-item" href="../post/delete.php"><i class="icon fa fa-circle-o"></i>回收站</a></li>
                </ul>
            </li>
            <?php $auth = $_COOKIE['auth'];
            if ($auth == '管理员') {
                ?>
                <li class="treeview"><a class="app-menu__item" href="#" data-toggle="treeview"><i class="app-menu__icon fa fa-edit"></i><span class="app-menu__label">网站配置</span><i class="treeview-indicator fa fa-angle-right"></i></a>
                    <ul class="treeview-menu">
                        <li><a class="treeview-item" style="color: #fff;" onclick="jquery:alert('你目前木这个权限')"><i class="icon fa fa-circle-o"></i>网站维护管理</a></li>
                    </ul>
                </li>
                <?php
            }else{
                ?>
                <li class="treeview"><a class="app-menu__item" href="#" data-toggle="treeview"><i class="app-menu__icon fa fa-edit"></i><span class="app-menu__label">网站配置</span><i class="treeview-indicator fa fa-angle-right"></i></a>
                    <ul class="treeview-menu">
                        <li><a class="treeview-item" href="./wang.php"><i class="icon fa fa-circle-o"></i>网站维护管理</a></li>
                    </ul>
                </li>
            <?php }?>
        </ul>
    </aside>

